package com.woniu.defecttracking.service;

import com.woniu.defecttracking.dto.FindPriorityDto;
import com.woniu.defecttracking.entity.Priority;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.defecttracking.exception.DefectTrackingException;
import com.woniu.defecttracking.param.AddPriorityParam;
import com.woniu.defecttracking.param.FindPriorityParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
public interface PriorityService extends IService<Priority> {

    FindPriorityDto findPriority();

    boolean addPriority(AddPriorityParam addPriorityParam);

    boolean updatePriority(AddPriorityParam updatePriority);

    boolean deletePriority(List<Integer> ids) throws DefectTrackingException;

    boolean updateStatusUp(Integer id);

    boolean updateStatusDown(Integer id);

    FindPriorityDto findAllPriority();
}
